﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EditPercent.aspx.cs" Inherits="Web.admin.InnerManage.AwardManage.EditPercent" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
     <script src="../../js/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="../../js/jquery.form.js" type="text/javascript"></script>
    <link href="../../css/style.css" rel="stylesheet" type="text/css" />
    <script src="../../js/function.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        function SingleUpload1(repath, uppath, iswater) {
            var submitUrl = "../tool/SingleUpload.ashx?ReFilePath=" + repath + "&UpFilePath=" + uppath;
            //判断是否打水印
            if (arguments.length == 3) {
                submitUrl = "../tool/SingleUpload.ashx?ReFilePath=" + repath + "&UpFilePath=" + uppath + "&IsWater=" + iswater;
            }
            //开始提交
            $("#form1").ajaxSubmit({
                beforeSubmit: function (formData, jqForm, options) {
                    //隐藏上传按钮
                    $("#" + repath).nextAll(".files").eq(0).hide();
                    //显示LOADING图片
                    $("#" + repath).nextAll(".uploading").eq(0).show();
                },
                success: function (data, textStatus) {
                    if (data.msg == 1) {
                        $("#" + repath).val(data.msbox);
                    } else {
                        alert(data.msbox);
                    }
                    $("#" + repath).nextAll(".files").eq(0).show();
                    $("#" + repath).nextAll(".uploading").eq(0).hide();
                },
                error: function (data, status, e) {
                    if (data.msg == 1) {
                        $("#" + repath).val(data.msbox);
                    } else {
                        alert(data.msbox);
                    }
                    $("#" + repath).nextAll(".files").eq(0).show();
                    $("#" + repath).nextAll(".uploading").eq(0).hide();
                },
                url: submitUrl,
                type: "post",
                dataType: "json",
                timeout: 600000
            });
        };
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="top_div">
        <div class="top_div_left" >
                <table>
                    <tr >
                        <td ><img src="../../images/main_hl.gif" /></td>
                        <td ><img src="../../images/main_hl2.gif" /></td>
                        <td class="topNav"><span>修改等级百分比</span></td>
                        <td><img src="../../images/main_hr.gif" /></td>
                    </tr>
                </table>
        </div>
    </div>

   <div class="middle_div">
        <div class="middle_left"></div>
        <div class="middle_middle"style="height:auto!important; height:853px !important;">
            <div class="navigation">首页&gt;等级管理&gt;修改等级百分比</div>
            <div class="submitTable">
                <table >
                    <tr>
                        <th>
                            所属竞赛
                        </th>
                        <td>
                            <asp:Label runat="server" ID="lb_ConName"></asp:Label>
                        </td>
                    </tr>
                    <asp:Repeater runat="server" ID="rp_award">
                        <ItemTemplate>
                            <tr>
                                <th>
                                    <%#((Model.BoPercent)Container.DataItem).awards.AWA_NAME%>
                                    <asp:HiddenField ID="HF_id" runat="server" Value='<%#((Model.BoPercent)Container.DataItem).PER_ID %>' />
                                </th>
                                <td>
                                    <asp:TextBox runat="server" ID="tb_persent" Width="20" Text='<%#((Model.BoPercent)Container.DataItem).PER_PERSENT%>'>
                                    </asp:TextBox><label>%</label>
                                    <asp:TextBox runat="server" ID="tb_order" Width="10" Text='<%#((Model.BoPercent)Container.DataItem).PER_ORDER %>'></asp:TextBox>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                    <tr>
                        <th></th>
                        <td>
                            <asp:Button ID="Button1" runat="server" CssClass="btn_reset"  OnClick="EditPersent" Text="保存修改"/>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div class="middle_right"></div>
    </div>
    </form>
</body>
</html>
